package com.ywh.hilttest.test7

import android.app.Activity
import android.app.Application
import android.content.Context
import android.util.Log
import com.ywh.hilttest.ContainerActivity
import dagger.hilt.android.qualifiers.ActivityContext
import javax.inject.Inject

/**
 * 使用Activity的Context
 */
class ActivityContextObject @Inject constructor(@ActivityContext val context: Context) {
    fun get() {
        Log.e("HiltTest", "ActivityContextObject:application:${context is Application},activity:${context is Activity},ContainerActivity:${context is ContainerActivity}")
    }
}